.class public Lcom/netease/newsreader/model/Weather;
.super Ljava/lang/Object;
.source "Weather.java"


# static fields
.field public static final PARAM_CLIMATE:Ljava/lang/String; = "climate"

.field public static final PARAM_DATE:Ljava/lang/String; = "date"

.field public static final PARAM_LAST_DAY_WEATHER:Ljava/lang/String; = "lastDayWeather"

.field public static final PARAM_NONGLI:Ljava/lang/String; = "nongli"

.field public static final PARAM_TEMPERATURE:Ljava/lang/String; = "temperature"

.field public static final PARAM_UPDATE_TIME:Ljava/lang/String; = "updateTime"

.field public static final PARAM_WEEK:Ljava/lang/String; = "week"

.field public static final PARAM_WIND:Ljava/lang/String; = "wind"

.field public static final WEATHER_ICON_MAP:Ljava/util/HashMap; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public static final WEATHER_URL:Ljava/lang/String; = "http://c.3g.163.com/nc/weather/%s.html"


# direct methods
.method static constructor <clinit>()V
    .locals 8

    .prologue
    const v7, 0x7f020031

    const v6, 0x7f02000e

    const v5, 0x7f02000d

    const v4, 0x7f020130

    const v3, 0x7f0200e4

    .line 269
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    .line 271
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u6674"

    const v2, 0x7f0200d9

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 272
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u591a\u4e91"

    const v2, 0x7f02003e

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 273
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u9634"

    const v2, 0x7f020129

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 274
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u9635\u96e8"

    const v2, 0x7f02012e

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 275
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u96f7\u9635\u96e8"

    const v2, 0x7f02006d

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 276
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u96f7\u9635\u96e8\u4f34\u6709\u51b0\u96f9"

    const v2, 0x7f02006e

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 277
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u96e8\u5939\u96ea"

    const v2, 0x7f02012a

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 278
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5c0f\u96e8"

    const v2, 0x7f020127

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 279
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u4e2d\u96e8"

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 280
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u51bb\u96e8"

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 281
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5c0f\u5230\u4e2d\u96e8"

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 282
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5927\u96e8"

    const v2, 0x7f020033

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 283
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u66b4\u96e8"

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 284
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u4e2d\u5230\u5927\u96e8"

    const v2, 0x7f020033

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 285
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5927\u5230\u66b4\u96e8"

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 286
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5927\u66b4\u96e8"

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 287
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u7279\u5927\u66b4\u96e8"

    const v2, 0x7f0200fc

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 288
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u66b4\u5230\u5927\u66b4\u96e8"

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 289
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5927\u66b4\u5230\u7279\u5927\u66b4\u96e8"

    const v2, 0x7f0200fc

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 290
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u9635\u96ea"

    const v2, 0x7f02012d

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 291
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5c0f\u96ea"

    const v2, 0x7f020126

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 292
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u4e2d\u96ea"

    const v2, 0x7f02012f

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 293
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5c0f\u5230\u4e2d\u96ea"

    const v2, 0x7f02012f

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 294
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5927\u96ea"

    const v2, 0x7f020032

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 295
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u66b4\u96ea"

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 296
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u4e2d\u5230\u5927\u96ea"

    const v2, 0x7f020032

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 297
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5927\u5230\u66b4\u96ea"

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 298
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u96fe"

    const v2, 0x7f020125

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 299
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u6c99\u5c18\u66b4"

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 300
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u6d6e\u5c18"

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 301
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u626c\u6c99"

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 302
    sget-object v0, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    const-string v1, "\u5f3a\u6c99\u5c18\u66b4"

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 27
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 27
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getDateDiff(Ljava/text/SimpleDateFormat;Ljava/lang/String;Ljava/lang/String;)I
    .locals 9
    .parameter "format"
    .parameter "start"
    .parameter "end"

    .prologue
    .line 187
    :try_start_0
    invoke-virtual {p0, p2}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v5

    invoke-virtual {v5}, Ljava/util/Date;->getTime()J

    move-result-wide v5

    invoke-virtual {p0, p1}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/Date;->getTime()J
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-wide v7

    sub-long v3, v5, v7

    .line 188
    .local v3, milliondiff:J
    long-to-double v5, v3

    const-wide v7, 0x4194997000000000L

    div-double v1, v5, v7

    .line 189
    .local v1, i:D
    const-wide/16 v5, 0x0

    cmpg-double v5, v1, v5

    if-gez v5, :cond_0

    .line 190
    const/4 v5, -0x1

    .line 195
    .end local v1           #i:D
    .end local v3           #milliondiff:J
    :goto_0
    return v5

    .line 193
    .restart local v1       #i:D
    .restart local v3       #milliondiff:J
    :cond_0
    double-to-int v5, v1

    goto :goto_0

    .line 194
    .end local v1           #i:D
    .end local v3           #milliondiff:J
    :catch_0
    move-exception v0

    .line 195
    .local v0, e:Ljava/text/ParseException;
    const v5, 0x7fffffff

    goto :goto_0
.end method

.method public static getDayStr(Ljava/lang/String;)Ljava/lang/String;
    .locals 2
    .parameter "str"

    .prologue
    .line 217
    const-string v1, "/"

    invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 218
    .local v0, ss:[Ljava/lang/String;
    if-eqz v0, :cond_0

    array-length v1, v0

    if-nez v1, :cond_1

    .line 219
    :cond_0
    const-string v1, ""

    .line 222
    :goto_0
    return-object v1

    :cond_1
    const/4 v1, 0x0

    aget-object v1, v0, v1

    goto :goto_0
.end method

.method public static getNightStr(Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .parameter "str"

    .prologue
    .line 226
    const-string v1, "/"

    invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 227
    .local v0, ss:[Ljava/lang/String;
    if-eqz v0, :cond_0

    array-length v1, v0

    if-nez v1, :cond_1

    .line 228
    :cond_0
    const-string v1, ""

    .line 231
    :goto_0
    return-object v1

    :cond_1
    array-length v1, v0

    const/4 v2, 0x2

    if-ge v1, v2, :cond_2

    const/4 v1, 0x0

    aget-object v1, v0, v1

    goto :goto_0

    :cond_2
    const/4 v1, 0x1

    aget-object v1, v0, v1

    goto :goto_0
.end method

.method private static getParam(Lorg/json/JSONObject;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter "json"
    .parameter "param"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    .line 152
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "---"

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public static getWeatherList(Ljava/lang/String;Ljava/lang/String;ZLandroid/content/Context;)Ljava/util/List;
    .locals 30
    .parameter "province"
    .parameter "city"
    .parameter "forceUpdate"
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Z",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/List",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation

    .prologue
    .line 56
    new-instance v15, Ljava/util/ArrayList;

    invoke-direct {v15}, Ljava/util/ArrayList;-><init>()V

    .line 58
    .local v15, list:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    const/4 v12, 0x0

    .line 59
    .local v12, jsonArray:Lorg/json/JSONArray;
    const/4 v9, 0x0

    .line 60
    .local v9, jobj:Lorg/json/JSONObject;
    const/4 v11, 0x0

    .line 61
    .local v11, jobj2:Lorg/json/JSONObject;
    new-instance v27, Ljava/lang/StringBuilder;

    invoke-static/range {p0 .. p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v28

    invoke-direct/range {v27 .. v28}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v28, "|"

    invoke-virtual/range {v27 .. v28}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v27

    move-object/from16 v0, v27

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    .line 62
    .local v20, pc:Ljava/lang/String;
    invoke-static/range {p3 .. p3}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v22

    .line 63
    .local v22, sp:Landroid/content/SharedPreferences;
    const-string v27, "weather"

    const/16 v28, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 65
    .local v21, results:Ljava/lang/String;
    if-nez p2, :cond_5

    invoke-static/range {v21 .. v21}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v27

    if-nez v27, :cond_5

    const/16 v18, 0x0

    .line 66
    .local v18, needUpdate:Z
    :goto_0
    if-nez v18, :cond_0

    .line 68
    move-object/from16 v0, v21

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v27

    const/16 v28, -0x1

    move/from16 v0, v27

    move/from16 v1, v28

    if-ne v0, v1, :cond_6

    const/16 v18, 0x1

    .line 70
    :cond_0
    :goto_1
    if-nez v18, :cond_1

    .line 71
    invoke-static/range {v22 .. v22}, Lcom/netease/newsreader/model/Weather;->isNeedUpdateForTime(Landroid/content/SharedPreferences;)Z

    move-result v18

    .line 74
    :cond_1
    const/4 v14, 0x0

    .line 75
    .local v14, lastUpdateDate:Ljava/util/Date;
    if-eqz v18, :cond_2

    .line 76
    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p3

    invoke-static {v0, v1, v2}, Lcom/netease/newsreader/model/Weather;->saveWeatherStr(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/util/Date;

    move-result-object v14

    .line 77
    const-string v27, "weather"

    const/16 v28, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 80
    :cond_2
    if-nez v14, :cond_3

    .line 81
    const-string v27, "weather_time"

    const-wide/16 v28, -0x1

    move-object/from16 v0, v22

    move-object/from16 v1, v27

    move-wide/from16 v2, v28

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v23

    .line 82
    .local v23, time:J
    const-wide/16 v27, -0x1

    cmp-long v27, v23, v27

    if-eqz v27, :cond_3

    .line 83
    new-instance v14, Ljava/util/Date;

    .end local v14           #lastUpdateDate:Ljava/util/Date;
    move-wide/from16 v0, v23

    invoke-direct {v14, v0, v1}, Ljava/util/Date;-><init>(J)V

    .line 87
    .end local v23           #time:J
    .restart local v14       #lastUpdateDate:Ljava/util/Date;
    :cond_3
    if-eqz v14, :cond_4

    if-eqz v21, :cond_4

    const-string v27, ""

    move-object/from16 v0, v21

    move-object/from16 v1, v27

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v27

    if-nez v27, :cond_4

    .line 90
    :try_start_0
    new-instance v10, Lorg/json/JSONObject;

    move-object/from16 v0, v21

    invoke-direct {v10, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 92
    .end local v9           #jobj:Lorg/json/JSONObject;
    .local v10, jobj:Lorg/json/JSONObject;
    if-eqz v10, :cond_b

    .line 93
    :try_start_1
    move-object/from16 v0, v20

    invoke-virtual {v10, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v12

    .line 94
    if-eqz v12, :cond_b

    .line 95
    const v27, 0x7f0b00a6

    move-object/from16 v0, p3

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 96
    .local v7, formatter:Ljava/lang/String;
    new-instance v27, Ljava/text/SimpleDateFormat;

    move-object/from16 v0, v27

    invoke-direct {v0, v7}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v27

    invoke-virtual {v0, v14}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v25

    .line 97
    .local v25, updateTime:Ljava/lang/String;
    const/16 v26, 0x0

    .line 98
    .local v26, willAdd:Z
    const/16 v16, 0x0

    .line 99
    .local v16, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const/4 v13, 0x0

    .line 100
    .local v13, lastMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    new-instance v19, Ljava/util/Date;

    invoke-direct/range {v19 .. v19}, Ljava/util/Date;-><init>()V

    .line 101
    .local v19, now:Ljava/util/Date;
    invoke-virtual {v12}, Lorg/json/JSONArray;->length()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    move-result v4

    .line 102
    .local v4, N:I
    const/4 v8, 0x0

    .local v8, j:I
    move-object/from16 v17, v16

    .end local v16           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .local v17, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :goto_2
    if-lt v8, v4, :cond_7

    move-object v9, v10

    .line 148
    .end local v4           #N:I
    .end local v7           #formatter:Ljava/lang/String;
    .end local v8           #j:I
    .end local v10           #jobj:Lorg/json/JSONObject;
    .end local v13           #lastMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v17           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v19           #now:Ljava/util/Date;
    .end local v25           #updateTime:Ljava/lang/String;
    .end local v26           #willAdd:Z
    .restart local v9       #jobj:Lorg/json/JSONObject;
    :cond_4
    :goto_3
    return-object v15

    .line 65
    .end local v14           #lastUpdateDate:Ljava/util/Date;
    .end local v18           #needUpdate:Z
    :cond_5
    const/16 v18, 0x1

    goto/16 :goto_0

    .line 68
    .restart local v18       #needUpdate:Z
    :cond_6
    const/16 v18, 0x0

    goto/16 :goto_1

    .line 104
    .end local v9           #jobj:Lorg/json/JSONObject;
    .restart local v4       #N:I
    .restart local v7       #formatter:Ljava/lang/String;
    .restart local v8       #j:I
    .restart local v10       #jobj:Lorg/json/JSONObject;
    .restart local v13       #lastMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v14       #lastUpdateDate:Ljava/util/Date;
    .restart local v17       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v19       #now:Ljava/util/Date;
    .restart local v25       #updateTime:Ljava/lang/String;
    .restart local v26       #willAdd:Z
    :cond_7
    :try_start_2
    invoke-virtual {v12, v8}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    .line 105
    const-string v27, "date"

    move-object/from16 v0, v27

    invoke-virtual {v11, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 106
    .local v5, date:Ljava/lang/String;
    if-nez v26, :cond_8

    .line 107
    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v27

    const/16 v28, 0x0

    .line 108
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v29

    add-int/lit8 v29, v29, -0x1

    .line 107
    invoke-virtual/range {v27 .. v29}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v27

    invoke-static/range {v27 .. v27}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v27

    .line 108
    invoke-virtual/range {v19 .. v19}, Ljava/util/Date;->getDate()I

    move-result v28

    .line 107
    move/from16 v0, v27

    move/from16 v1, v28

    if-ne v0, v1, :cond_8

    .line 110
    new-instance v27, Ljava/text/SimpleDateFormat;

    .line 111
    const v28, 0x7f0b00a7

    move-object/from16 v0, p3

    move/from16 v1, v28

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v28

    .line 110
    invoke-direct/range {v27 .. v28}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 112
    move-object/from16 v0, v27

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v5

    .line 113
    const/16 v26, 0x1

    .line 115
    :cond_8
    if-eqz v26, :cond_a

    .line 116
    new-instance v16, Ljava/util/HashMap;

    invoke-direct/range {v16 .. v16}, Ljava/util/HashMap;-><init>()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    .line 117
    .end local v17           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v16       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :try_start_3
    const-string v27, "date"

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    invoke-virtual {v0, v1, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 118
    const-string v27, "week"

    const-string v28, "week"

    move-object/from16 v0, v28

    invoke-static {v11, v0}, Lcom/netease/newsreader/model/Weather;->getParam(Lorg/json/JSONObject;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v28

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 119
    const-string v27, "nongli"

    const-string v28, "nongli"

    move-object/from16 v0, v28

    invoke-static {v11, v0}, Lcom/netease/newsreader/model/Weather;->getParam(Lorg/json/JSONObject;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v28

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 120
    const-string v27, "climate"

    const-string v28, "climate"

    move-object/from16 v0, v28

    invoke-static {v11, v0}, Lcom/netease/newsreader/model/Weather;->getParam(Lorg/json/JSONObject;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v28

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 122
    const-string v27, "temperature"

    const-string v28, "temperature"

    move-object/from16 v0, v28

    invoke-static {v11, v0}, Lcom/netease/newsreader/model/Weather;->getParam(Lorg/json/JSONObject;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v28

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 123
    const-string v27, "wind"

    const-string v28, "wind"

    move-object/from16 v0, v28

    invoke-static {v11, v0}, Lcom/netease/newsreader/model/Weather;->getParam(Lorg/json/JSONObject;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v28

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 124
    const-string v27, "updateTime"

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    move-object/from16 v2, v25

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 127
    if-eqz v13, :cond_9

    .line 128
    const-string v27, "lastDayWeather"

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    invoke-virtual {v0, v1, v13}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 132
    :goto_4
    move-object/from16 v13, v16

    .line 133
    invoke-interface/range {v15 .. v16}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 102
    :goto_5
    add-int/lit8 v8, v8, 0x1

    move-object/from16 v17, v16

    .end local v16           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v17       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    goto/16 :goto_2

    .line 130
    .end local v17           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v16       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_9
    const-string v27, "lastDayWeather"

    move-object/from16 v0, v16

    move-object/from16 v1, v27

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_4

    .line 135
    :catch_0
    move-exception v6

    .end local v5           #date:Ljava/lang/String;
    .local v6, e:Ljava/lang/Exception;
    :goto_6
    move-object v9, v10

    .line 137
    .end local v10           #jobj:Lorg/json/JSONObject;
    .restart local v9       #jobj:Lorg/json/JSONObject;
    goto/16 :goto_3

    .line 143
    .end local v4           #N:I
    .end local v6           #e:Ljava/lang/Exception;
    .end local v7           #formatter:Ljava/lang/String;
    .end local v8           #j:I
    .end local v13           #lastMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v16           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v19           #now:Ljava/util/Date;
    .end local v25           #updateTime:Ljava/lang/String;
    .end local v26           #willAdd:Z
    :catch_1
    move-exception v6

    .line 144
    .restart local v6       #e:Ljava/lang/Exception;
    :goto_7
    invoke-virtual {v6}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_3

    .line 143
    .end local v6           #e:Ljava/lang/Exception;
    .end local v9           #jobj:Lorg/json/JSONObject;
    .restart local v10       #jobj:Lorg/json/JSONObject;
    :catch_2
    move-exception v6

    move-object v9, v10

    .end local v10           #jobj:Lorg/json/JSONObject;
    .restart local v9       #jobj:Lorg/json/JSONObject;
    goto :goto_7

    .line 135
    .end local v9           #jobj:Lorg/json/JSONObject;
    .restart local v4       #N:I
    .restart local v7       #formatter:Ljava/lang/String;
    .restart local v8       #j:I
    .restart local v10       #jobj:Lorg/json/JSONObject;
    .restart local v13       #lastMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v17       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v19       #now:Ljava/util/Date;
    .restart local v25       #updateTime:Ljava/lang/String;
    .restart local v26       #willAdd:Z
    :catch_3
    move-exception v6

    move-object/from16 v16, v17

    .end local v17           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v16       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    goto :goto_6

    .end local v16           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v5       #date:Ljava/lang/String;
    .restart local v17       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_a
    move-object/from16 v16, v17

    .end local v17           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v16       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    goto :goto_5

    .end local v4           #N:I
    .end local v5           #date:Ljava/lang/String;
    .end local v7           #formatter:Ljava/lang/String;
    .end local v8           #j:I
    .end local v13           #lastMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v16           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v19           #now:Ljava/util/Date;
    .end local v25           #updateTime:Ljava/lang/String;
    .end local v26           #willAdd:Z
    :cond_b
    move-object v9, v10

    .end local v10           #jobj:Lorg/json/JSONObject;
    .restart local v9       #jobj:Lorg/json/JSONObject;
    goto/16 :goto_3
.end method

.method public static isNeedUpdateForTime(Landroid/content/SharedPreferences;)Z
    .locals 8
    .parameter "sp"

    .prologue
    const-wide/16 v6, -0x1

    .line 162
    const/4 v1, 0x1

    .line 164
    .local v1, needUpdate:Z
    const-string v5, "weather_time"

    invoke-interface {p0, v5, v6, v7}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v3

    .line 165
    .local v3, time:J
    cmp-long v5, v3, v6

    if-eqz v5, :cond_0

    .line 166
    new-instance v0, Ljava/util/Date;

    invoke-direct {v0, v3, v4}, Ljava/util/Date;-><init>(J)V

    .line 167
    .local v0, last:Ljava/util/Date;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    .line 169
    .local v2, now:Ljava/util/Date;
    invoke-virtual {v0}, Ljava/util/Date;->getYear()I

    move-result v5

    invoke-virtual {v2}, Ljava/util/Date;->getYear()I

    move-result v6

    if-ne v5, v6, :cond_0

    invoke-virtual {v0}, Ljava/util/Date;->getMonth()I

    move-result v5

    invoke-virtual {v2}, Ljava/util/Date;->getMonth()I

    move-result v6

    if-ne v5, v6, :cond_0

    .line 170
    invoke-virtual {v0}, Ljava/util/Date;->getDate()I

    move-result v5

    invoke-virtual {v2}, Ljava/util/Date;->getDate()I

    move-result v6

    if-ne v5, v6, :cond_0

    .line 171
    const/4 v1, 0x0

    .line 182
    .end local v0           #last:Ljava/util/Date;
    .end local v2           #now:Ljava/util/Date;
    :cond_0
    return v1
.end method

.method private static saveWeatherStr(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/util/Date;
    .locals 10
    .parameter "province"
    .parameter "city"
    .parameter "context"

    .prologue
    .line 200
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "|"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 201
    .local v2, pc:Ljava/lang/String;
    const-string v6, "http://c.3g.163.com/nc/weather/%s.html"

    const/4 v7, 0x1

    new-array v7, v7, [Ljava/lang/Object;

    const/4 v8, 0x0

    invoke-static {v2}, Lcom/netease/newsreader/util/StringUtil;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v7, v8

    invoke-static {v6, v7}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    .line 202
    .local v5, url:Ljava/lang/String;
    const/16 v6, 0x7530

    invoke-static {v5, v6, p2}, Lcom/netease/newsreader/util/HttpUtils;->getResponseFromGetUrl(Ljava/lang/String;ILandroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    .line 203
    .local v3, results:Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    if-nez v6, :cond_0

    .line 204
    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    .line 205
    .local v1, now:Ljava/util/Date;
    invoke-static {p2}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 206
    .local v4, sp:Landroid/content/SharedPreferences;
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 207
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v6, "weather"

    invoke-interface {v0, v6, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 208
    const-string v6, "weather_time"

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v7

    invoke-interface {v0, v6, v7, v8}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    .line 210
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 213
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    .end local v1           #now:Ljava/util/Date;
    .end local v4           #sp:Landroid/content/SharedPreferences;
    :goto_0
    return-object v1

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public static setWeatherBitmap(Ljava/lang/String;Landroid/widget/ImageView;Landroid/content/Context;)V
    .locals 2
    .parameter "str"
    .parameter "imageView"
    .parameter "context"

    .prologue
    .line 243
    sget-object v1, Lcom/netease/newsreader/model/Weather;->WEATHER_ICON_MAP:Ljava/util/HashMap;

    invoke-virtual {v1, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    .line 245
    .local v0, resid:Ljava/lang/Integer;
    if-eqz v0, :cond_0

    .line 246
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 248
    :cond_0
    return-void
.end method
